<?php
include_once("Element.class.php");

class Text extends Element
{
	var $input = "<input type=\"text\" name=\"{name}\" value=\"{value}\" id=\"{id}\" size=\"{size}\"{params} />\n";

	function Text($id)
	{
		parent::Element($id);
	}
	function __getHTML()
	{
		$search  = array('{name}', '{value}', '{size}', '{id}', '{params}');
		$replace = array($this->getName(), $this->default, $this->size, $this->ID, $this->getParams());

		return str_replace($search, $replace, $this->input);
	}
}

?>